﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.fmtx.Model;
using com.fmtx.IDal;

namespace com.fmtx.Dal
{
    public class CommentServer:BaseServer<Comment>,IComment
    {
        public List<Comment> Query(int id, Target tag,int index=0,int size=10)
        {
            var list= db.AllList(w => w.TagId == id && w.TagType == tag);
            return list.OrderByDescending(o=>o.Id).Skip(index * size).Take(size).ToList();
        }
    }
}
